#include "MyVideoWidget.h"

#include <QMimeData>

MyVideoWidget::MyVideoWidget(VideoPage *page, QMenu *playMenu, QWidget *parent) : QVideoWidget(parent)
{
	this->page = page;
	this->playMenu = playMenu;

	setAcceptDrops(true);
}

void MyVideoWidget::contextMenuEvent(QContextMenuEvent *event)
{
	playMenu->popup(event->globalPos());
}
